package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author hql
 * @date 2019-12-08 17:18
 */
public interface OrderDao {
   Order checkOrder(@Param("setmealId") String setmealId, @Param("id") Integer id, @Param("orderDate") String orderDate);

     void addOrder(Order order);

     Map<String, String> findById(@Param("id") Integer id);

     Integer getTodayOrderNumber(String reportDate);

     Integer getTodayVisitsNumber(String reportDate);

     Integer getThisWeekOrderNumber(String firstDayOfWeek);

      Integer getThisWeekVisitsNumber(String firstDayOfWeek);

     Integer getThisMonthOrderNumber(String firstDayOfMonth);

     List<Map<String, Object>> findHotSetmealList();
}
